package chpt02;

public class StringDemo01 {
	
	public static void main(String[] args) {
		String s1 = "abc"; 
		String s2 = "abc";
		String s3 = new String("Hello");
		String s4 = new String("Hello");
		String s5 = s3;
		System.out.println("s1==s2: " + (s1==s2));
		System.out.println("s1 equals s2: " + s1.equals(s2));
		System.out.println("s3==s4: " + (s3==s4));
		System.out.println("s3==s5: " + (s3==s5));
		System.out.println("s3 equals s4: "+ s3.equals(s4));
	}
}
